Skip to content

Harden Codex branch isolation and safer default prompts#12

Merged
NagyVikt merged 1 commit intomainfrom
agent/codex/20260411-130224-vscode-protected-branch-ops
Apr 11, 2026
Merged

Harden Codex branch isolation and safer default prompts#12
NagyVikt merged 1 commit intomainfrom
agent/codex/20260411-130224-vscode-protected-branch-ops

Conversation

@NagyVikt
Copy link
Copy Markdown
Collaborator

@NagyVikt NagyVikt commented Apr 11, 2026

Summary

  • require Codex-session commits to happen on agent/* branches by default in the pre-commit template
  • improve sandbox launch scripts (argument parsing + codex binary override handling) and document the safer flow
  • default the interactive self-update prompt to No and add install regression coverage

Verification

  • npm test (41/41 pass)

This captures the pending musafety workflow hardening: Codex session commits now require agent/* branches by default, startup sandbox scripts gained stronger argument handling, and status self-update prompts default to no. The change also updates docs/templates/tests and publishes the next package version.

Constraint: Protected branches must stay safe for interactive maintainers while still supporting sandboxed agent automation

Rejected: Keep Codex non-agent commits allowed by default | too easy to accidentally write from protected/non-isolated branches

Confidence: high

Scope-risk: moderate

Reversibility: clean

Directive: If relaxing branch guards, update both hook templates and install tests in the same change

Tested: npm test (41/41 pass)

Not-tested: end-to-end npm publish in CI for this exact commit
@NagyVikt NagyVikt merged commit 14f505e into main Apr 11, 2026
7 checks passed
@NagyVikt NagyVikt deleted the agent/codex/20260411-130224-vscode-protected-branch-ops branch April 11, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant